﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnhancedSolutions
{
    class DisposeResultList : IEnumerable<DisposeResult>
    {
        private List<DisposeResult> list;

        public DisposeResultList()
        {
            list = new List<DisposeResult>();
        }

        public void Add(DisposeResult result)
        {
            list.Add(result);
        }

        public DisposeResult Get(int index)
        {
            return list[index];
        }

        public IEnumerator<DisposeResult> GetEnumerator()
        {
            return list.GetEnumerator();
        }

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return list.GetEnumerator();
        }
    }
}
